/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.voltor.core;

import java.lang.reflect.InvocationTargetException;
import org.openide.nodes.PropertySupport;

/**
 *
 * @author alext
 */
public class DynamicProperty extends PropertySupport.ReadWrite<String>{    
    private String value = null;
    
    public DynamicProperty(String name,String value) {
        super(name, String.class, null, null);
        this.value = value;
    }
    
    public DynamicProperty(String name, Class<String> type, String displayName, String shortDescription) {
        super(name, type, displayName, shortDescription);
    }

    @Override
    public String getValue() throws IllegalAccessException, InvocationTargetException {
        return value;
    }

    @Override
    public void setValue(String t) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
        this.value = t;
    }
    
}
